package orthoplanner.com.google.code.eventhandlers;

import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;

import javax.swing.JButton;
import javax.swing.JSlider;

public class ScaleResetHandler extends MouseAdapter {
	JSlider tmp;

	public ScaleResetHandler(JSlider tmp) {
		this.tmp = tmp;
	}

	@Override
	public void mouseClicked(MouseEvent e) {
		if (((JButton) e.getSource()).isEnabled())
			tmp.setValue(500);
	}

}
